package com.bd.scm.domain.dto.timeCard;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author yufc
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "考勤封账")
public class AccountsSaveDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty( value = "年份", dataType = "Integer", position = 0, required = true, example = "2020")
    private Integer settleYear;

    @ApiModelProperty( value = "月份", dataType = "Integer", position = 1, required = true, example = "7")
    private Integer settleMonth;


    @ApiModelProperty( value = "封账权限", notes = "1: 考勤员封账，2：HR封账，3：解封", dataType = "Integer", position = 2, required = true)
    private Integer sealType;

    @ApiModelProperty( value = "员工ID集合", notes = "员工ID集合", dataType = "List", position = 9, required = true)
    private List<Long> userIdList;

    @ApiModelProperty( value = "员工ID字符串", notes = "员工ID字符串，多个员工用逗号隔开", dataType = "List", position = 9, required = true, hidden = true)
    private String userIds;

    @ApiModelProperty( value = "操作人", notes = "封账操作人", dataType = "Long", position = 2, required = false, hidden = true)
    private Long operateId;

    @ApiModelProperty( value = "返回消息", notes = "返回消息", dataType = "String", position = 2, required = false, hidden = true)
    private String msg;
}